package com.four.shop.service.impl;

import com.four.shop.dao.ObserverDao;
import com.four.shop.entity.Observer;
import com.four.shop.service.ObserverService;
import com.four.shop.vo.ObserverVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.management.Query;
import java.util.List;

/**
 * @Author:wsy
 * @Date: 2021/12/9/15:35
 */
@Service
public class ObserverServiceImpl implements ObserverService {


    @Autowired
    private ObserverDao observerDao;


    @Override
    public List<Observer> list(ObserverVo vo) {

        return observerDao.observerList(vo);
    }

    @Override
    public void deleteById(Long id) {
        observerDao.deleteById(id);
    }

    @Override
    public void add(Observer observer) {

        observerDao.add(observer);
    }

    @Override
    public Observer findById(Long id) {
        return observerDao.findById(id);
    }

    @Override
    public void addCriContentById(Long id, String criContent) {

        observerDao.addCriContentById(id,criContent);
    }


}
